﻿<%@ Page Title="" Language="C#" MasterPageFile="~/SuKienMaster.Master" AutoEventWireup="true" CodeBehind="XemDSKhuVuc.aspx.cs" Inherits="QuanLySuKien.XemDSKhuVuc" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentMain" runat="server">
    <asp:Label ID="Label1" runat="server" Font-Bold="True" ForeColor="Blue" 
        Height="30px" Width="260px">Danh Sách Khu Vực:</asp:Label>
    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
        DataKeyNames="MaKV" DataSourceID="SqlDataSource1" EnableModelValidation="True" 
        Height="228px" Width="762px" BackColor="White" BorderColor="#999999" 
        BorderStyle="None" BorderWidth="1px" CellPadding="3" GridLines="Vertical">
        <AlternatingRowStyle BackColor="#DCDCDC" />
        <Columns>
            <asp:BoundField DataField="MaKV" HeaderText="Mã Khu Vực" ReadOnly="True" 
                SortExpression="MaKV" />
            <asp:BoundField DataField="TenKhuVuc" HeaderText="Tên Khu Vực" 
                SortExpression="TenKhuVuc" />
            <asp:BoundField DataField="Mota" HeaderText="Mô Tả" SortExpression="Mota" />
        </Columns>
        <FooterStyle BackColor="#CCCCCC" ForeColor="Black" />
        <HeaderStyle BackColor="#000084" Font-Bold="True" ForeColor="White" />
        <PagerStyle BackColor="#999999" ForeColor="Black" HorizontalAlign="Center" />
        <RowStyle BackColor="#EEEEEE" ForeColor="Black" />
        <SelectedRowStyle BackColor="#008A8C" Font-Bold="True" ForeColor="White" />
    </asp:GridView>
    <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
        ConnectionString="<%$ ConnectionStrings:quanlysukienConnectionString5 %>" 
        SelectCommand="SELECT [MaKV], [TenKhuVuc], [Mota] FROM [KhuVuc]">
    </asp:SqlDataSource>
    
</asp:Content>
